import 'package:flutter/material.dart';
import 'dart:ui';

class MyDrawer extends StatelessWidget {
  final _topHeihgt = MediaQueryData.fromWindow(window).padding.top;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 250,
      color: Color.fromARGB(255, 40, 44, 53),
      child: new Column(
        children: <Widget>[
          new Container(
            height: _topHeihgt + 80,
            child: new Row(
              children: <Widget>[
                 new Padding(
                   padding: EdgeInsets.fromLTRB(20, _topHeihgt+10, 0, 0),
                   child: new Container(
                     height: 40,
                     width: 40,
                     child: new DecoratedBox(
                       decoration: BoxDecoration(
                         borderRadius: BorderRadius.circular(20),
                         color: Colors.white,
                       ),
                     ),
                   ),
                 ),
                 new Padding(
                   padding: EdgeInsets.fromLTRB(20, _topHeihgt+10, 0, 0),
                   child: new Text("请登录",
                          style: new TextStyle(color: Colors.grey,fontSize: 16)),
                 )
              ],
            ),
          ),
          new Flex(
              direction: Axis.horizontal,
              children: <Widget>[
                Expanded(
                  flex: 1,
                  child: new Container(
                    child: Column(
                      children: <Widget>[
                        Icon(Icons.account_box,color: Colors.grey),
                        Text("收藏",style: new TextStyle(color: Colors.grey,fontSize: 10))
                      ],
                    ),
                  )
                ),
                 Expanded(
                  flex: 1,
                  child: new Container(
                    child: Column(
                      children: <Widget>[
                        Icon(Icons.accessible,color: Colors.grey),
                        Text("消息",style: new TextStyle(color: Colors.grey,fontSize: 10))
                      ],
                    ),
                  )
                ),
                 Expanded(
                  flex: 1,
                  child: new Container(
                    child: Column(
                      children: <Widget>[
                        Icon(Icons.battery_alert,color: Colors.grey),
                        Text("设置",style: new TextStyle(color: Colors.grey,fontSize: 10))
                      ],
                    ),
                  )
                ),
              ],
            )
        ],
      ),
    );
  }
}